package com.aiti.lulian.entity.newCard;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "名片企业物料实体")
@TableName("card_enterprise_material")
public class CardEnterpriseMaterial {

    @ApiModelProperty(name = "主键")
    @TableId(type = IdType.INPUT, value = "base_id")
    private String baseId;

    @ApiModelProperty(name = "所属企业ID")
    @TableField("enterprise_id")
    private String enterpriseId;

    @ApiModelProperty(name = "物料标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(name = "物料正文")
    @TableField("content")
    private String content;

    @ApiModelProperty(name = "封面URL")
    @TableField("cover")
    private String cover;

    @ApiModelProperty(name = "创建人名片ID")
    @TableField("creator_card_id")
    private String creatorCardId;

    @ApiModelProperty(name = "创建时间")
    @TableField(value = "base_create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date baseCreateTime;

    @ApiModelProperty(name = "更新人名片ID")
    @TableField("updater_card_id")
    private String updaterCardId;

    @ApiModelProperty(name = "更新时间")
    @TableField(value = "base_update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date baseUpdateTime;

    /**
     * 0：正常，1：删除
     */
    @ApiModelProperty(name = "删除状态")
    @TableField("is_delete")
    private Integer isDelete;
}
